class AppConfig {
  // Firebase配置
  static const String firebaseProjectId = 'YOUR_FIREBASE_PROJECT_ID';
  static const String firebaseApiKey = 'YOUR_FIREBASE_API_KEY';
  static const String firebaseAppId = 'YOUR_FIREBASE_APP_ID';
  static const String firebaseMessagingSenderId =
      'YOUR_FIREBASE_MESSAGING_SENDER_ID';

  // Google Sign-In配置
  static const String googleClientId =
      'YOUR_GOOGLE_CLIENT_ID.apps.googleusercontent.com';
  static const String googleClientIdIOS =
      'YOUR_GOOGLE_CLIENT_ID_IOS.apps.googleusercontent.com';

  // Apple Sign-In配置
  static const String appleServiceId = 'YOUR_APPLE_SERVICE_ID';
  static const String appleTeamId = 'YOUR_APPLE_TEAM_ID';
  static const String appleKeyId = 'YOUR_APPLE_KEY_ID';
  static const String applePrivateKey = 'YOUR_APPLE_PRIVATE_KEY';

  // 应用配置
  static const String appName = 'Bitcoin Mine';
  static const String appVersion = '1.0.0';

  // 网页链接配置
  static const String privacyPolicyUrl =
      'https://notch-cross-94a.notion.site/Bitcoin-Mining-Privacy-Policy-2a1c7e6f44f080ef9165da0e7057e387?source=copy_link';
  static const String userAgreementUrl =
      'https://notch-cross-94a.notion.site/Bitcoin-Mining-Terms-Of-Service-2a1c7e6f44f080b2bbf1fa2eb9b38ff0?source=copy_link';

  // 功能开关
  static const bool enableAppleSignIn = true;
  static const bool enableGoogleSignIn = true;
  static const bool enableFirebaseAuth = true;

  // 获取Google Client ID（根据平台）
  static String getGoogleClientId({bool isIOS = false}) {
    return isIOS ? googleClientIdIOS : googleClientId;
  }

  // 检查是否启用特定功能
  static bool isFeatureEnabled(String feature) {
    switch (feature) {
      case 'apple_sign_in':
        return enableAppleSignIn;
      case 'google_sign_in':
        return enableGoogleSignIn;
      case 'firebase_auth':
        return enableFirebaseAuth;
      default:
        return false;
    }
  }
}
